package com.hdax.dmw.item.controller;

import com.hdax.dmw.common.controllers.order.ItemControllerApi;
import com.hdax.dmw.entity.item.DmItem;
import com.hdax.dmw.item.service.DmItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ItemController implements ItemControllerApi {

    @Autowired
    private DmItemService itemService;
    @Override
    public DmItem detail(Long itemId) {
        return itemService.getById(itemId);
    }
}
